import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const routes = [
  {
    path: '/',
    name: 'Deatil',
    component: () => import( '../views/Detail.vue')
  },
    {
    path: '/self',
    name: 'self',
    component: () => import( '../views/warehouse/Self.vue')
  },
  ,
    {
    path: '/all',
    name: 'all',
    component: () => import( '../components/AllHead.vue')
  },
  ,
    {
    path: '/login',
    name: 'login',
    component: () => import( '../views/user/LoginView.vue')
  },
  ,
    {
    path: '/register',
    name: 'register',
    component: () => import( '../views/user/RegisterView.vue')
  },
  // {
  //   path: '/about',
  //   name: 'about',
  //   component: () => import( '../views/AboutView.vue')
  // }
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
